<?php

namespace app\common\model;

use think\Model;


class ColumnGoods extends Model
{

    

    

    // 表名
    protected $name = 'column_goods';
    
    public function column()
    {
        return $this->belongsTo('Column', 'column_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function goods()
    {
        return $this->belongsTo('Goods', 'goods_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
